/*
 * @Description:测试类
 * 
 * @Author: rendc
 * 
 * @Date: 2025-08-05 11:16:49
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-08-05 11:24:57
 */

public class Test {

  public static void main(String[] args) {
    // 基本数据类型
    // int a = 2;
    // double d = a;
    // double d2 = 2;
    // double d3 = 2.0;
    // int a2 = d3;
    // int a3 = 2.0;
    // 抽象类不能直接实例化对象
    // Shape shape = new Shape();
    // 多态
    int r = 2;// 隐式类型转换
    double r2 = 2.0;// 隐式类型转换
    Shape shape = new Circle("圆", r2);
    System.out.println(shape.getArea());
  }
}